home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / setObjectPickMask.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.9 KB  |  132 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. // Copyright (C) 1997-1999 Alias|Wavefront,
  18. // a division of Silicon Graphics Limited.
  19. //
  20. // The information in this file is provided for the exclusive use of the
  21. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  22. // and incorporate this code into other products for purposes authorized
  23. // by the Alias|Wavefront license agreement, without fee.
  24. //
  25. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  26. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  27. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  28. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  29. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  30. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  31. // PERFORMANCE OF THIS SOFTWARE.
  32. //
  33. //
  34. //  Alias|Wavefront Script File
  35. //  MODIFY THIS AT YOUR OWN RISK
  36. //
  37. //  Creation Date:  26 Jun 1996
  38. //
  39. //  Description:
  40. //      This procedure sets the state of the object pick mask.
  41. //
  42. //  Input Arguments:
  43. //        The flag for the pick mask setting to turn on/off,
  44. //        and the state to set that pick mask setting to.
  45. //
  46. //  Return Value:
  47. //        None
  48. //
  49.  
  50. global proc setObjectPickMask( string $maskType, int $state ) {
  51.  
  52.     //
  53.     // Set values, based on the state of the pick mask
  54.     // type and state passed to the procedure
  55.     //
  56.     switch ($maskType) {
  57.         case "All":
  58.             selectType -allObjects $state;
  59.             //
  60.             // Change the state of all the object
  61.             // selection mask buttons in the infoBar
  62.             //
  63.             iconTextCheckBox -e -v $state objButton1;
  64.             iconTextCheckBox -e -v $state objButton2;
  65.             iconTextCheckBox -e -v $state objButton3;
  66.             iconTextCheckBox -e -v $state objButton4;
  67.             iconTextCheckBox -e -v $state objButton5;
  68.             iconTextCheckBox -e -v $state objButton6;
  69.             iconTextCheckBox -e -v $state objButton7;
  70.             break;
  71.         case "Marker":
  72.             selectType
  73.                 -handle $state
  74.                 -ikHandle $state;
  75.             break;
  76.         case "Joint":
  77.             selectType
  78.                 -joint $state;
  79.             break;
  80.         case "Curve":
  81.             if (`isTrue MayaCreatorExists` && (`licenseCheck -m "edit" -typ "particlePaint"`) ) {
  82.                 selectType
  83.                     -nurbsCurve $state
  84.                     -cos $state
  85.                     -stroke $state;  // For Particle Paint
  86.             }
  87.             else {
  88.                 selectType
  89.                     -nurbsCurve $state
  90.                     -cos $state;
  91.             }
  92.             break;
  93.         case "Surface":
  94.             selectType
  95.                 -nurbsSurface $state
  96.                 -polymesh $state
  97.                 -subdiv $state
  98.                 -plane $state;
  99.             break;
  100.         case "Deformer":
  101.             selectType
  102.                 -lattice $state
  103.                 -cluster $state
  104.                 -sculpt $state
  105.                 -nonlinear $state;            
  106.             break;
  107.         case "Dynamic":
  108.             selectType
  109.                 -particleShape $state
  110.                 -emitter $state
  111.                 -field $state
  112.                 -fluid $state
  113.                 -spring $state
  114.                 -collisionModel $state
  115.                 -rigidBody $state
  116.                 -rigidConstraint $state;
  117.             break;
  118.         case "Rendering":
  119.             selectType
  120.                 -light $state
  121.                 -camera $state
  122.                 -texture $state;
  123.             break;
  124.         case "Other":
  125.             selectType
  126.                 -ikEndEffector $state
  127.                 -locator $state
  128.                 -dimension $state;
  129.             break;
  130.     }
  131. }
  132.